package com.hoshiicloud.goods.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hoshiicloud.common.query.OmnipotentParam;
import com.hoshiicloud.goods.entity.sku.BaseSkuGallery;

import java.util.List;

/**
 * <p>
 * 基础SKU商品图片资源 服务类
 * </p>
 *
 * @author zhangshuhu
 * @since 2019-06-04
 */
public interface BaseSkuGalleryService extends IService<BaseSkuGallery> {

    BaseSkuGallery getById(Long id);

    boolean save(BaseSkuGallery entity);

    boolean updateById(BaseSkuGallery entity);

    IPage getPage(IPage page, Wrapper queryWrapper, String key);

    boolean deleteById(Long id);

    List<BaseSkuGallery> getByIds(List<Long> ids, String key);

    /**
     * 根据BaseSkuId查询图片信息
     */
    List<BaseSkuGallery> getByBaseSkuId(Long baseSkuId);

    /**
     * 批量更新
     */
    boolean updateBatch(OmnipotentParam<BaseSkuGallery> param);
}
